﻿import request from '/@/utils/request';
enum Api {
  AddTicketsBig = '/api/ticketsBig/add',
  DeleteTicketsBig = '/api/ticketsBig/delete',
  UpdateTicketsBig = '/api/ticketsBig/update',
  PageTicketsBig = '/api/ticketsBig/page',
  DetailTicketsBig = '/api/ticketsBig/detail',
}

// 增加工单大类
export const addTicketsBig = (params?: any) =>
	request({
		url: Api.AddTicketsBig,
		method: 'post',
		data: params,
	});

// 删除工单大类
export const deleteTicketsBig = (params?: any) => 
	request({
			url: Api.DeleteTicketsBig,
			method: 'post',
			data: params,
		});

// 编辑工单大类
export const updateTicketsBig = (params?: any) => 
	request({
			url: Api.UpdateTicketsBig,
			method: 'post',
			data: params,
		});

// 分页查询工单大类
export const pageTicketsBig = (params?: any) => 
	request({
			url: Api.PageTicketsBig,
			method: 'post',
			data: params,
		});

// 详情工单大类
export const detailTicketsBig = (id: any) => 
	request({
			url: Api.DetailTicketsBig,
			method: 'get',
			data: { id },
		});


